
//Multiple Instances or the new Constructor function



var person = {};
person.name = 'madhu';
//javascript -- object
 function Car(ownerValuePassed,colorValuePassed){
     //this = {};
     this.owner = ownerValuePassed;
     this.color = colorValuePassed;
     //return this;
 }

 function Bike(owner,color){

 }

//prototype -- Class

//Car("john","gold")

var keerthi = new Car('keerthi', 'blue');
keerthi.color = 'gold';
//keerthi instanceof  Car ;//true
var Upender = new Car('Upender', 'red');

var madhu = new Car('madhu','white');
//instance







//Prototypal Inheritance